﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EI_Month.aspx.cs" Inherits="StatisticData_TestTypeStatistic_EI_Month" Title="按日历月统计百单位欠点" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<div>
    <br />
    <asp:Panel ID="Panel1" runat="server" Height="26px">
                选择要统计的日历月(可选当月的任意一天)：<asp:TextBox ID="TextBox2" runat="server" AutoPostBack="True" 
                    Style="vertical-align: top"></asp:TextBox><asp:CalendarExtender ID="TextBox2_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TextBox2">
                </asp:CalendarExtender>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" 
                    ValidationGroup="VGroup1" />
    </asp:Panel>
        <div>
            <br />
&nbsp;<asp:Label ID="Label1" runat="server" Text="统计结果："></asp:Label><br />
            <asp:GridView ID="GridView1" runat="server" BackColor="White" 
                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                CellSpacing="1" GridLines="None" AllowPaging="True" 
                AutoGenerateColumns="False" onpageindexchanging="GridView1_PageIndexChanging" 
                PageSize="20" Width="100%">
                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                <Columns>
                    <asp:BoundField DataField="ProductTypeID" HeaderText="测试类型" />
                    <asp:BoundField DataField="total" HeaderText="测试数" />
                    <asp:BoundField DataField="Quantity" HeaderText="不良数" />
                    <asp:BoundField DataField="Quantity1" DataFormatString="{0:F3}" 
                        HeaderText="百单位欠点" />
                </Columns>
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
            </asp:GridView>
        </div>
        <div style="background-color: Silver">
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
            <span style="color: red">updating in process...</span>
            <input type="button" value="stop" onclick="AbortPostBack()" />
            </ProgressTemplate>
            </asp:UpdateProgress>
        </div> 
        </div>
        </ContentTemplate> 
        </asp:UpdatePanel> 
</asp:Content>

